package com.k8.registry.config;

import com.k8.rpc.url.URL;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

@Accessors(chain = true)
public abstract class AbstractServiceConfig<T> extends AbstractConfig {

    @Getter
    @Setter
    protected Class<T> type;
    @Getter
    protected Class<? extends T> targetType;
    @Getter
    @Setter
    protected T instance;
    @Getter
    @Setter
    protected String version;
    @Getter
    @Setter
    protected String group;


    public AbstractServiceConfig(URL systemConfigUrl, List<URL> registryConfigUrls) {
        super(systemConfigUrl, registryConfigUrls);
    }
}
